package com.kws.system.service.payment;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kws.system.domain.payment.TbOrder;
import com.kws.system.domain.payment.info.QueryCommodityPayOrderInfo;
import com.kws.system.domain.payment.info.QueryServerOrderInfo;
import com.kws.system.domain.payment.rq.QueryCommodityPayOrderRq;

import java.util.List;

public interface OrderManagementService extends IService<TbOrder> {
    Page<QueryCommodityPayOrderInfo> queryCommodityPayOrderPage(QueryCommodityPayOrderRq rq);

    QueryCommodityPayOrderInfo queryCommodityPayOrderById(Long id);

    boolean refundOrder(Long id);

    Page<QueryServerOrderInfo> queryServerOrderPage(QueryCommodityPayOrderRq rq);

    QueryServerOrderInfo queryServerOrderById(Long id);

    List<QueryServerOrderInfo> queryServerOrderList(Long id, Long itemId);
}
